﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace SLUISystem
{
    public class WindowBase : MonoBehaviour
    {
        #region 原生生命周期
        private void Awake()
        {
            OnWindowLoaded();
        }

        private void OnEnable()
        {
            OnWindowEnabled();
            AddListenters();
        }

        private void Start()
        {
            
        }

        private void OnDisable()
        {
            
        }

        private void OnDestroy()
        {
            
        }
        #endregion

        protected virtual void OnWindowLoaded()
        {
            
        }

        protected virtual void OnWindowEnabled()
        {

        }

        protected virtual void AddListenters()
        {

        }


    }
}
